<template>
	<view>
		<view class="item">
			<view class="item-title">{{item.competition_info.name}}</view>
			<view class="item-line"></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'Item',
		props: {
			item: {
				type: Object,
				default: () => []
			}
		},
		methods: {
			handleClick(url) {
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.item {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0rpx 30rpx;
	}
	
	.item-detail {
		padding: 5rpx 15rpx;
		border-radius: 10rpx;
		font-size: 28rpx;
		color: white;
		background-color: #007AFF;
	}
	
	.item-line {
		position: absolute;
		bottom: 0rpx;
		left: 0rpx;
		height: 1px;
		width: 100%;
		background-color: #eeeeee;
	}
</style>